package com.sdgakj.foton.cloud.bean;
import com.baomidou.mybatisplus.activerecord.Model;

import java.io.Serializable;
import java.sql.Timestamp;

/**
*
*  @author Du Ronghong
*/
public class Province extends Model<Province> implements Serializable {

    private static final long serialVersionUID = 1531377650478L;


    /**
    * 主键
    * 
    * isNullAble:0
    */
    private Integer id;

    /**
    * 名称
    * isNullAble:0
    */
    private String name;

    /**
    * 创建时间
    * isNullAble:0,defaultVal:CURRENT_TIMESTAMP
    */
    private Timestamp createtime;

    /**
    * 
    * isNullAble:0,defaultVal:CURRENT_TIMESTAMP
    */
    private Timestamp updatetime;


    public void setId(Integer id){
        this.id = id;
    }

    public Integer getId(){
        return this.id;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getName(){
        return this.name;
    }

    public void setCreatetime(Timestamp createtime){
        this.createtime = createtime;
    }

    public Timestamp getCreatetime(){
        return this.createtime;
    }

    public void setUpdatetime(Timestamp updatetime){
        this.updatetime = updatetime;
    }

    public Timestamp getUpdatetime(){
        return this.updatetime;
    }
    @Override
    public String toString() {
        return "province{" +
                "id='" + id + '\'' +
                "name='" + name + '\'' +
                "createtime='" + createtime + '\'' +
                "updatetime='" + updatetime + '\'' +
            '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
